
    <!DOCTYPE html>
    <html lang="zh-CN">
    <head>
      <meta charset="UTF-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <title>Memory Prompt - 学习卡片</title>
      <style>
        body { font-family: sans-serif; background-color: #f0f8ff; color: #333; display: flex; flex-direction: column; align-items: center; padding: 50px 20px; }
        .header h1 { font-size: 32px; }
        .grid-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; width: 100%; max-width: 1200px; }
        .card-container { perspective: 1200px; cursor: pointer; height: 250px; }
        .card { width: 100%; height: 100%; position: relative; transform-style: preserve-3d; transition: transform 0.7s; border-radius: 16px; box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
        .card-container.flipped .card { transform: rotateY(180deg); }
        .card-face { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; display: flex; flex-direction: column; box-sizing: border-box; border-radius: 16px; background-color: #fff; padding: 24px; }
        .card-back { background-color: #f0fff4; transform: rotateY(180deg); justify-content: space-between; }
        .card-category { font-size: 14px; color: #0052d9; margin-bottom: 8px; font-weight: 500; }
        .card-question { font-size: 20px; font-weight: 500; flex-grow: 1; display: flex; align-items: center; justify-content: center; text-align: center; }
        .card-answer-wrapper { flex-grow: 1; overflow-y: auto; }
        .card-answer { font-size: 15px; line-height: 1.7; }
        .card-footer { font-size: 13px; color: #8a919f; border-top: 1px solid #f0f0f0; padding-top: 16px; margin-top: 16px; }
        .card-source { font-size: 13px; color: #8a919f; border-top: 1px solid #f0f0f0; padding-top: 12px; margin-top: 12px; }
      </style>
    </head>
    <body>
      <div class="header">
        <h1>Memory Prompt - 学习卡片</h1>
      </div>
      <div class="grid-container">
        
    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">理论</div>
          <div class="card-question">根据文档，AI 助手在评估一段 '记忆' 时的主要目的是什么？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">理论</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">其主要目的是判断这段记忆是否值得被记住，以便在未来与人类程序员的对话中，AI 能够利用这段记忆做出更好的回应。</div>
          </div>
          <div class="card-source">来源: 文档第一段</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">机制</div>
          <div class="card-question">一份能获得高分（4-5分）的记忆应具备哪些关键特征？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">机制</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">一份高分记忆必须是：与编程领域相关、具有通用性且适用于未来互动、具体且可操作（SPECIFIC and ACTIONABLE），并且代表了一种不局限于当前对话中特定代码或文件的通用偏好或规则。</div>
          </div>
          <div class="card-source">来源: 文档中「A memory is worthy of being remembered if it is:」部分</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">机制</div>
          <div class="card-question">哪些类型的记忆会被认为是低质量的并获得低分（1-2分）？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">机制</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">获得低分的记忆通常是：与当前对话中的特定代码或文件强相关的（例如函数名或文件名）、一次性的任务细节、或者过于模糊或显而易见的陈述（例如“用户喜欢组织良好的代码”）。</div>
          </div>
          <div class="card-source">来源: 文档中「<examples_rated_negatively>」部分</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">规则</div>
          <div class="card-question">在评分时，AI 被要求倾向于哪种评分策略，尤其是在处理模糊或不确定的记忆时？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">规则</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">AI 被要求倾向于“苛刻地”评分（Err on the side of rating things POORLY）。对于模糊、显而易见或不确定的记忆，应给予 1 到 3 分的低分，只有在记忆明确有价值、可操作且通用时才给予 4 或 5 分。</div>
          </div>
          <div class="card-source">来源: 文档倒数第五段「Err on the side of rating things POORLY...」</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">规则</div>
          <div class="card-question">文档中提到了哪两种特殊情况，它们的评分是预先确定的？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">规则</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">1. 如果用户明确（EXPLICITLY）要求记住某件事，无论内容如何，都必须评为 5 分。 2. 如果记忆内容是“no_memory_needed”或“no_memory_suggested”，则必须评为 1 分。</div>
          </div>
          <div class="card-source">来源: 文档末尾的指令「However, if the user EXPLICITLY asks...」和「Also, if you see something like 'no_memory_needed'...」</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">特性</div>
          <div class="card-question">请根据文档，分别举一个“具体且可操作的”（高分）记忆和一个“一次性任务细节”（低分）记忆的例子。</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">特性</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">一个高分的“具体且可操作的”例子是：“使用 async/await 风格而不是 promise 链”。一个低分的“一次性任务细节”例子是：“utils.ts 文件中的 calculateTotal 函数需要重构”。</div>
          </div>
          <div class="card-source">来源: 文档中「<examples_rated_negatively>」和「<examples_rated_positively>」部分</div>
        </div>
      </div>
    </div>

      </div>
    </body>
    </html>
